package com.cj.minio.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (FileInfo)表实体类
 *
 * @author mjg
 * @since 2021-05-22 15:07:06
 */
@EqualsAndHashCode(callSuper = true)
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FileInfo extends Model<FileInfo> {

    private Integer fileId;
    //文件名字
    private String fileName;
    //文件路径
    private String fileUrl;
    //文件类型
    private Integer fileTypeId;
    //桶id
    private Integer bucketId;

    /**
     * 大小
     */
    private Long size;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.fileId;
    }
}
